/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gerenciadorfinanceiro.controller.resources;

import gerenciadorfinanceiro.database.resources.Income;
import gerenciadorfinanceiro.database.resources.User;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author eduardo
 */

@Transactional(readOnly=true)
public interface IncomeDAO {

    public List getIncomes(User u, int month, int year);
    public Income getIncomeById(int id);

    @Transactional(readOnly=false)
    public void saveIncome(Income i);
    @Transactional(readOnly=false)
    public void updateIncome(Income i);

}
